package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.example.qxfw.common.entity.ny.BadCondition;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/6  星期四   10:43
* @description : 此类用来
***************************************/
@Mapper
public interface BadConditionMapperXml extends BaseMapper<BadCondition> {
    /**
     * delete by primary key
     * @param indexid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(@Param("indexid") Integer indexid, @Param("climatecondition") String climatecondition, @Param("climateconditionvalue") Double climateconditionvalue, @Param("timesize") Short timesize, @Param("timetype") Short timetype, @Param("datasource") String datasource, @Param("contrasttype") Short contrasttype);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(BadCondition record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(BadCondition record);

    /**
     * select by primary key
     * @param indexid primary key
     * @return object by primary key
     */
    BadCondition selectByPrimaryKey(@Param("indexid") Integer indexid, @Param("climatecondition") String climatecondition, @Param("climateconditionvalue") Double climateconditionvalue, @Param("timesize") Short timesize, @Param("timetype") Short timetype, @Param("datasource") String datasource, @Param("contrasttype") Short contrasttype);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(BadCondition record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(BadCondition record);
}